/*
 * File         : cym_init.c
 * Version      : 0.2.0
 * Author       : Vincent Cheung
 * Date         : Oct. 09, 2013
 * Description  : This file is used to initialize all the resource
 *                of this project.
 * 
 * Copyright (C) 2013, CYM Co., Ltd.
 *
 * Change logs  :
 * Date                 Author          Notes
 * Oct. 09, 2013        Vincent         the first implement
 * Nov. 20, 2013        Vincent         add key support
 *
 */

#include "cym_system.h"
#include "cym_driver.h"
#include "cym_init.h"

/**
 * Initialize all the device on board here.
 *
 * @retval NULL
 */
static void cym_hw_board_init(void)
{

}

/**
 * Initialize all the resource.
 *
 * @retval NULL
 */
void cym_all_resource_init(void)
{
	/* initialize borad resource */
	cym_hw_board_init();

	/* initialize all the device */
	cym_device_init_all();

#ifdef CYM_USING_KEY
	/* initialize key in system */
	cym_key_init();
#endif
}